import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Collections;

public class h_8 {
    public static void main(String[] args) throws Exception {
        getNames("names.txt");
    }
    public static String getNames(String file) throws Exception {
        ArrayList<String> list=new ArrayList();
        BufferedReader fr=new BufferedReader(new FileReader(file));
        String str=null;
        while((str=fr.readLine())!=null){
            list.add(str);
        }
        Collections.shuffle(list);
        System.out.println(list.get(0));
        fr.close();
        return list.get(0);
    }
}
